﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace QMERP.Infrastructure.EFCore.Migrations
{
    /// <inheritdoc />
    public partial class init5 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "CustomerNumber",
                table: "RetailOrder",
                newName: "CustomerOrderNumber");

            migrationBuilder.RenameIndex(
                name: "IX_RetailOrder_CustomerNumber",
                table: "RetailOrder",
                newName: "IX_RetailOrder_CustomerOrderNumber");

            migrationBuilder.RenameColumn(
                name: "CustomerNumber",
                table: "BulkOrder",
                newName: "CustomerOrderNumber");

            migrationBuilder.RenameIndex(
                name: "IX_BulkOrder_CustomerNumber",
                table: "BulkOrder",
                newName: "IX_BulkOrder_CustomerOrderNumber");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "CustomerOrderNumber",
                table: "RetailOrder",
                newName: "CustomerNumber");

            migrationBuilder.RenameIndex(
                name: "IX_RetailOrder_CustomerOrderNumber",
                table: "RetailOrder",
                newName: "IX_RetailOrder_CustomerNumber");

            migrationBuilder.RenameColumn(
                name: "CustomerOrderNumber",
                table: "BulkOrder",
                newName: "CustomerNumber");

            migrationBuilder.RenameIndex(
                name: "IX_BulkOrder_CustomerOrderNumber",
                table: "BulkOrder",
                newName: "IX_BulkOrder_CustomerNumber");
        }
    }
}
